package chapter;

public class object_data {
    public static void main(String[] args) {
     User01 user = new User01();
     String name = "ZYH";
     int age = 18;
     user.sayhellow(name,age);
     user.test(80, "zyh", "202406689");

    }
}
class User01{
    void sayhellow( String name,int age) {
        //小括号内为参数列表
        System.out.println("hellow" + name + "," + age);
    }
    void test(int longth, String... Name) {
        //TODO 多个同属性参数可以使用可变参数
        System.out.println(longth + "," + Name);
    }

}